SOInetPtoN


C Specification

#include <dolphin/socket.h>
int SOInetPtoN ( int af, const char* src, void* dst );

Description

SOInetPtoN() converts an address in its standard text presentation into its numeric binary form.

Arguments

af The family of the address (must be SO_PF_INET).
src A pointer to the string being passed in. (e.g., ddd.ddd.ddd.ddd)
dst A pointer to a buffer where the function stores the numeric address.

Return Values

1 Succeeded.
0 src is not a valid IPv4 address notation.
SO_EAFNOSUPPORT af is not SO_PF_INET.

See Also

SOInetNtoP()